<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_small_order_item.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/mall_reportforms.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '配置报表',
                    name: 'mall_reportforms',
                    url: "/mall_reportforms/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"name":"","link":""},
                editFormOptions: [[ {"title":"名字","field":"name","required":true,"type":"text"},
                                 {"title":"链接","field":"link","required":true,"type":"text"}]],
                searchFormFields: {"name":"",},
                searchFormOptions: [
                    [{"title":"名字","field":"name","type":"like"},]
                   ],
                columns: [  
                       {field:'name',title:'名字',type:'string',width:220,align:'left'},
                       {field:'link',title:'链接',type:'string',width:120,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:180,align:'left',sortable:true},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                      ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
